package App;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;

import Model.Hotel;

public class Aplicacao {

	public static void main (String[] args) throws IOException{
		Hotel h1 = new Hotel(1, "rua rua", 12345, "Hotel A", "Gerente A");
		File hotel = new File("C:/Arquivos/hotel.txt");
		FileOutputStream f = new FileOutputStream(hotel);
		ObjectOutputStream o = new ObjectOutputStream(f);
		o.writeObject(h1);
		}


}
